 <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">域名管理</span></div>
        </div>
       
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="{:U('Yuming/add')}"><i class="icon-font"></i>新增域名</a>
                       
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                           
                            <th>域名</th>
							
							<th>域名检测</th>
                            <th>操作</th>
                        </tr>
						
						<foreach name="re" item="v">
                        <tr>
                            
                            <td>{$v.yuming}</td>
							
							<td>
							<a style="cursor:pointer;" onclick="img({$v['id']})">查看二维码手机扫描检测</a>
							</td>
                            <td>
                             
                                <a class="link-del" style="cursor:pointer;" onclick="del({$v.id})">删除</a>
                            </td>
                        </tr>
                        </foreach>
                    </table>
                    <div class="list-page"> {$page}</div>
                </div>
            </form>
        </div>
    </div>

    <script>
	  
	  function del(i){
	  
	     $.post('{:U("Yuming/del")}',{"id":i},function(re){
		 
		  if(re==1){
		   
		   alert('删除成功');
		   
		   location.reload();
		  
		  }else{
		  
		    alert('删除失败');
		  
		  }
		 
		 
		 })
	  
	  
	  
	  }
	  
	  
	  function  img(i){
	  
	    layer.open({
		  type: 2,
		  title: '扫码检测域名有没有被封',
		  shadeClose: true,
		  shade: 0.8,
		  area: ['380px', '50%'],
		  content: '{:U("Yuming/chakan")}?id='+i //iframe的url
		}); 
	  
	  }
	  
	  
	
	
	</script>